package demo01;
class Fu1 {
    int num = 5;
}

class Zi1 extends Fu {
    int num = 6;

    public void PrintNumber() {
        System.out.println("Fu1 num:" + num);
        System.out.println("Zi1 num:" + num);

    }
}
public class ExtendDemo03 {
    public static void main(String[] args) {
        Zi1 z = new Zi1();
        z.num = 8;
        z.PrintNumber();
    }
}
